#! /usr/bin/env python

import os
from abjad.tools.documentationtools import AbjadAPIGenerator
from j264 import J264ROOT


if __name__ == '__main__':

    class J264APIGenerator(AbjadAPIGenerator):

        _api_title = 'J264'

        @property
        def code_tools_path(self):
            return J264ROOT

        @property
        def docs_api_index_path(self):
            return os.path.join(J264ROOT, 'docs', 'source', 'index.rst')

        @property
        def docs_tools_path(self):
            return os.path.join(J264ROOT, 'docs', 'source', 'j264')

        @property
        def package_prefix(self):
            return self.root_package + '.tools.'

        @property
        def root_package(self):
            return 'j264'

        @property
        def tools_package_path_index(self):
            return 2

    J264APIGenerator()(verbose=True)
